<body>
<div class="layui-fluid">
	<div class="layui-row layui-col-space15">
		<div class="layui-col-md12">
			<div class="layui-card">
				<div class="layui-card-header">{$page_name}</div>
				<div class="layui-card-body" pad15>
<form action="{:url(request()->action())}" method="post">
					<div class="layui-form">
						<div class="layui-form-item">
							<label class="layui-form-label">栏目名</label>
							<div class="layui-input-inline">
								<input type="text" class="layui-input" name="title" autocomplete="off" value="{$info.title}" lay-verify="required" placeholder="请输入栏目名">
							</div>
							<div class="layui-form-mid layui-word-aux"></div>
						</div>
						
						<div class="layui-form-item">
							<label class="layui-form-label">Banner图片</label>
							<div class="layui-input-inline">
								<input type="text" class="layui-input banner_input" name="banner" value="{$info.banner}" lay-verify="required" placeholder="请上传Banner图片">
							</div>
							<div class="layui-input-inline" style="width: auto;">
								<button type="button" class="layui-btn layui-btn-primary wy-upload" 
									id="img_button"
									style="margin-bottom:0;"
									wy-data="{
										accept:'images',
										acceptMime:'image/*',
										exts: 'jpg|png|gif|bmp|jpeg',
										data:{savepath:'banner'},
										img_url:'.banner_img',
										input_url:'.banner_input'
									}">
									<i class="layui-icon layui-icon-upload"></i>上传图片
								</button>
							</div>
							
							<div class="layui-input-inline" style="width: auto;">
								<button type="button" class="layui-btn layui-btn-primary wy-work" 
									id="img_work"
									style="margin-bottom:0;"
									wy-data="{
										path:'banner',
										exts: 'jpg|png|gif|bmp|jpeg',
										img_url:'.banner_img',
										input_url:'.banner_input'
									}">
									<i class="layui-icon layui-icon-file"></i>文件空间
								</button>
							</div>
							<div class="layui-form-mid layui-word-aux"></div>
						</div>
						<div class="layui-form-item" id="img_show">
							<label class="layui-form-label"></label>
							<div class="layui-input-block" id="img_show_div">
								<img src="{$info.img|default=config('app.noimg')}" class="banner_img wy-uploads_img">
							</div>
						</div>
						
						<fieldset class="layui-elem-field">
							<legend>SEO信息</legend>
							<div class="layui-field-box">

								<div class="layui-form-item">
									<label class="layui-form-label">标题</label>
									<div class="layui-input-inline">
										<input type="text" class="layui-input" name="seo_title" autocomplete="off" value="{$info.seo_title}" lay-verify="" placeholder="SEO标题">
									</div>
								</div>

								<div class="layui-form-item">
									<label class="layui-form-label">关键词</label>
									<div class="layui-input-inline">
										<input type="text" class="layui-input" name="seo_keywords" autocomplete="off" value="{$info.seo_keywords}" lay-verify="" placeholder="请输入SEO关键词">
									</div>
								</div>

								<div class="layui-form-item">
									<label class="layui-form-label">描述</label>
									<div class="layui-input-inline">
										<input type="text" class="layui-input" name="seo_description" autocomplete="off" value="{$info.seo_description}" lay-verify="" placeholder="请输入SEO描述">
									</div>
								</div>
							</div>
						</fieldset>

						<div class="layui-form-item">
							<div class="layui-input-block">
								<input name="id" type="hidden" value="{$info.id}">
								<button class="layui-btn"
									lay-submit
									lay-filter="wy-submit"
									wy-changetabid="contentcat_index"
									wy-closetabid="contentcat_content"
									wy-reloadpage="1"
								>确认提交</button>
								<button type="reset" class="layui-btn layui-btn-primary">重新填写</button>
							</div>
						</div>
					</div>
</form>
				</div>
			</div>
		</div>
	</div>
</div>
</body>